
import { get,post } from '@/utils/http'

// 获取用户信息
export const getUserInfoMap = (params:any) => {return get('/security/user/getUserInfoMap', params)}

// 获取用户路由信息
export const getUserRouters = (params:any) => {return get('/security/user/listUserRouters', params)}

// 获取用户安全信息
export const getUserSecurity = () => {return get('/security/user/getUserSecurity')}

// 获取用户基本信息
export const getUserBase = () => {return get('/security/user/getUserBase')}

// 更新用户基本信息
export const updateUserBase = (data:any) => {return get('/security/user/updateUserBase', data)}

// 修改用户账户密码
export const changeUserPass = (data:any) => {return post('/security/user/changeUserPass', data)}

// 绑定用户手机号码
export const bindUserMobile = (data:any) => {return post('/security/user/bindUserMobile', data)}

// 绑定用户电子邮箱
export const bindUserEmail  = (data:any) => {return post('/security/user/bindUserEmail', data)}